package com.hyh.ad.common.core.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.*;

/**
 * Entity基类
 * 
 * @author pd
 */
public class BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 创建者 */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新者 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /** 备注 */
    private String remark;

    /** 删除标志 */
    private String deleteFlag;

    /** 搜索值 */
    @TableField(exist = false)
    private String searchValue;

    /** 请求参数 */
    @TableField(exist = false)
    private Map<String, Object> params;

    @TableField(exist = false)
    private HashMap<String, Object> likeMap;

    @TableField(exist = false)
    private HashMap<String, String> orderBy;

    @TableField(exist = false)
    private ArrayList<String> groupBy;

    public String getUUID() {
        return UUID;
    }

    public void setUUID(String UUID) {
        this.UUID = UUID;
    }

    @TableField(exist = false)
    private String UUID;

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    @TableField(exist = false)
    private String checkCode;

    @TableField(exist = false)
    private HashMap<String, HashMap<String, Object>> between;

    @TableField(exist = false)
    private HashMap<String, Collection<Object>> in;

    public String getSearchValue()
    {
        return searchValue;
    }

    public void setSearchValue(String searchValue)
    {
        this.searchValue = searchValue;
    }

    public String getCreateBy()
    {
        return createBy;
    }

    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getUpdateBy()
    {
        return updateBy;
    }

    public void setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

    public HashMap<String, Object> getLikeMap() {
        return likeMap;
    }

    public void setLikeMap(HashMap<String, Object> likeMap) {
        this.likeMap = likeMap;
    }

    public HashMap<String, String> getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(HashMap<String, String> orderBy) {
        this.orderBy = orderBy;
    }

    public ArrayList<String> getGroupBy() {
        return groupBy;
    }

    public void setGroupBy(ArrayList<String> groupBy) {
        this.groupBy = groupBy;
    }

    public HashMap<String, HashMap<String, Object>> getBetween() {
        return between;
    }

    public void setBetween(HashMap<String, HashMap<String, Object>> between) {
        this.between = between;
    }

    public HashMap<String, Collection<Object>> getIn() {
        return in;
    }

    public void setIn(HashMap<String, Collection<Object>> in) {
        this.in = in;
    }
}
